package com.iot.iotplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@TableName("qf_message")
public class Message {
    private String device;
    private String productKey;
    private String tenantId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Integer soilHumidity;
    private Integer soilTemperature;
    private Integer soilPh;
    private Integer soilNpk;
    private Double airTemperature;
    private Double airHumidity;
    private Integer illumination;
    private Integer co2;
    private Integer ph;
    private Integer windSpeed;
    private Integer flowVelocity;
}
